package cn.lizemin.review;

/**
 * @author: lizemin
 * @version: 1.0
 */
public class Day01 {
    //这是一个main方法,是程序的入口
    public static void main(String[] args) {
        String str1 = "通话";
//        String str2 = "重地";
//        //格式化输出，有点像C语言
//        System.out.println(String.format("str1：%d | str2：%d",  str1.hashCode(),str2.hashCode()));
//        System.out.println(str1.equals(str2));

        // StringBuffer reverse
        StringBuffer stringBuffer = new StringBuffer();
        stringBuffer. append("abcdefg");
        System. out. println(stringBuffer. reverse()); // gfedcba
        // StringBuilder reverse
        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder. append("abcdefg");
        System. out. println(stringBuilder. reverse()); // gfedcba

    }

}
